package com.example.mobifin_busticket;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

import com.example.mobifin_busticket.views.activities.Login;
import com.example.mobifin_busticket.views.activities.MobifinActivity;

public class SplashScreen extends MobifinActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash_screen);

		if (MyApplication.checkConnectivity(SplashScreen.this)) {
			Toast.makeText(this, " connected", Toast.LENGTH_LONG).show();
			Intent i = new Intent(SplashScreen.this, Login.class);

			startActivity(i);
			finish();
		} else {
			Toast.makeText(this, "Not connected", Toast.LENGTH_LONG).show();
		}
	}

}
